﻿using System;
using System.Collections.Generic;
using System.Reflection;

namespace Dimok {
  public class Common {
    public static System.Threading.SynchronizationContext CurrentContext { get { return System.Threading.SynchronizationContext.Current; } }

		public static string CurrentVirsion {
			get {
				return Assembly.GetExecutingAssembly().FullName.Split(',')[1];
			}
		}
    private static string CurrentAssemblyName {
      get {
        string name = System.Reflection.Assembly.GetCallingAssembly().FullName;
        return name.Substring(0, name.IndexOf(','));
      }
    }
  }
  public class Strings : List<string> { }
  public class ObjectModel<T> : Model where T : class {
    private T value = null;
    public T Value {
      get { return value; }
      set {
        this.value = value;
        RaisePropertyChanged("Value");
      }
    }
		public ObjectModel() { }
		public ObjectModel(T value) {
			this.Value = value;
		}
  }
}
